<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<form action="{:U('Admin/Category/sort_category')}" method="post">
    <table class="table table-striped table-hover">
        <tr><td colspan="4"><h4>{$p_name}的子栏目：》<a href="{:U(GROUP_NAME.'/Category/addcategory',array('pid'=>$pid,'p_name'=>$p_en_name))}">添加子栏目</a>
            &nbsp; &nbsp;  <a href="{:U(GROUP_NAME.'/Category/index')}">栏目列表</h4></a>
        </tr>
        <tr>
            <th>栏目中文名称</th>
            <th>栏目英文名称</th>
            <th>排序</th>
            <th>操作</th>
        </tr>
        <foreach name="child_cate" item="v">
            <tr>
                <td>
                    {$v.name}
                </td>
                <td>
                    {$v.en_name}
                </td>
                    <td width="300px"><input class="form-control text"  name="{$v.id}" value="{$v.sort}"></td>
                <td>
                   <a class="label label-primary" href="{:U(GROUP_NAME.'/Category/editcategory',array('pid'=>$v['id'],'p_name'=>$p_name))}">修改</a>
                   <a class="btn btn-danger btn-xs" href="{:U(GROUP_NAME.'/Category/deletecategory',array('pid'=>$v['id']))}" onclick="return del()">删除</a></td>
            </tr>
        </foreach>
        <tr>
            <td colspan="5" align="center">
                <input style="width: 200px"  class="btn btn-primary" type="submit" value="保存">
            </td>
        </tr>
    </table>
</form>
<link href="__PUBLIC__/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="__PUBLIC__/bootstrap/css/button.css" rel="stylesheet">
<script src="__PUBLIC__/bootstrap/js/jquery-1.9.1.js"></script>
<script src="__PUBLIC__/bootstrap/js/bootstrap.js"></script>
<js file="__PUBLIC__/Js/ghulam.js"/>
</body>
</html>